#ifndef LEVEL1_H_INCLUDED
#define LEVEL1_H_INCLUDED

#include "Block.h"

class Level1 : public Levels
{
    private:
        MyText *txtOut;

        int high_score,
            max_right_movement,
            max_left_movement;

        Block *grass0,
              *small_grass0,
              *first_towers,
              *second_towers,
              *hole0;

        // More test
        int player_current_y, // where the player is in terms of Y
            jump_max, // max number of pixels the player can jump
            jump_spd, // speed of player jump
            player_current_floor_y; // if the player is on a block of platfourm this is the base Y for the player

        bool landed,
             scrolling;

        string topblocks,
               midblocks,
               groundblocks,
               top1blocks;

        MyGrafx clouds,
                mountain,
                ground;

    private:
        void load_images();
        void build_level_blocks();
        void print_level_images( int bgY, int bgX1, int bgX2, int bgX3);
        void calc_screen_movement();
        void detect_bullet_firing();
        void build_enemys();
        void Check_player_jumping();

    public:
        Level1(int health, int score);
        ~Level1();
        void draw();
        void draw_ground_objects();
        void moveleft();
        void moveright();
        void moveup();
        void attack();

        void Set_player_main_floor_y( int main_floor_y );
        void Reset_jump_spd();
        //int getPlayerHealth();
};


#endif // LEVEL1_H_INCLUDED
